package com.shen.server.service;

import com.shen.server.pojo.Employee;
import com.baomidou.mybatisplus.extension.service.IService;
import com.shen.server.pojo.ResPageBean;
import com.shen.server.pojo.RespBean;

import java.time.LocalDate;
import java.util.List;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author HMF
 * @since 2022-04-10
 */
public interface IEmployeeService extends IService<Employee> {

    /**
     * 查询所有员工
    * @date: 2022/4/20
    * @param: currentPage
    * @param: size
    * @param: employee
    * @param: beginDateScope
    * @return
    */

    ResPageBean getEmployeeByPage(Integer currentPage, Integer size, Employee employee, LocalDate[] beginDateScope);

    RespBean maxWorkID();

    /**
     * 添加员工
    * @date: 2022/4/21
    * @param: employee
    * @return
    */

    RespBean addEmployee(Employee employee);


    /**
     * 更新员工
    * @date: 2022/4/21
    * @param: employee
    * @return
    */

    RespBean updateEmployee(Employee employee);

    /**
     * 查询员工（id为null）时查所有
    * @date: 2022/4/22
    * @param: id
    * @return
    */

    List<Employee> getEmployees(Integer id);


    /**
     * 获取所以员工账套(分页)
    * @date: 2022/4/24
    * @param: currenPage
    * @param: size
    * @return
    */

    ResPageBean getEmplWithSlary(Integer currenPage, Integer size,Employee employee);
}
